package com.qwz.learn;
/**
* @Description:  使用原型的客户端
* @Package: com.qwz.learn.Client
* @Author: Qiuwuzhi
* @CreateDate: 2019/12/16  10:12
* @Version V1.0
*/
public class Client {
    /**
     * 持有原型对象的接口
     */
    private ProtoType protoType;

    public Client(ProtoType protoType) {
        this.protoType = protoType;
    }

    /**
     * 示意方法，执行某个功能操作
     */
    public void operation(){
        ProtoType newProtoType = this.protoType.clone();
    }
}
